<template>
  <mu-paper :z-depth="4" class="assess-tools">
    <mu-flex align-items="end">
      <div class="item">
        <div class="item-value">{{ data.finishNum }}</div>
        <div class="item-title">第几个完成</div>
      </div>
      <div class="item">
        <div class="item-value">{{ data.credit }}</div>
        <div class="item-title">获得积分</div>
      </div>
      <div class="item">
        <div class="item-value" style="font-size:16px;">
          {{ data.subTime | time }}
        </div>
        <div class="item-title">提交时间</div>
      </div>
    </mu-flex>
  </mu-paper>
</template>
<script>
export default {
  filters: {
    time(value) {
      if (!value) return "";
      return value.substring(value.indexOf("/") + 1, value.length);
    },
  },
  props: ["data"],
};
</script>
<style lang="less">
.assess-tools {
  width: 400px;
  padding-top: 30px;
  padding-bottom: 30px;
  .item {
    text-align: center;
    width: 33.3%;
    border-right: 1px solid #ededed;
  }
  .item-title {
    color: #4f4f4f;
  }

  .item-value {
    font-size: 18px;
    color: #5a6e96;
    margin-bottom: 10px;
  }
}
</style>
